# config.py
import json

# 加载Prompt配置
with open("./config/character_prompt.json", "r", encoding="utf-8") as f:
    PROMPT_CONFIG = json.load(f)

# 预处理常用数据，避免重复计算
CHARACTER_INFO_LIST = [{"id": char["id"], "name": char["name"]} for char in PROMPT_CONFIG["character_prompt"]]
CHARACTER_MAP = {char["id"]: char["name"] for char in PROMPT_CONFIG["character_prompt"]}
SYSTEM_PROMPT_MAP = {char["id"]: char["system_prompt"] for char in PROMPT_CONFIG["character_prompt"]}
print(PROMPT_CONFIG["character_prompt"])

AUDIO_CONFIG_MAP = {char["id"]: char["audio_config"] for char in PROMPT_CONFIG["character_prompt"]}

# 定义模型名称
MODEL_NAME = "qwen3-max"